<template>
  <div id="app">
    <div v-for="(item, index) in arr" :key="index" v-if="item.show">
      <p>姓名：{{ item.name }}</p>
    </div>
  </div>
</template>
<script>
export default{
  name: 'App',
  data() {
    return {
      arr:[
        {
          name:'尼克',
          show:true
        },
        {
          name:'十三',
          show:false
        }
      ]
    }
  }
}
</script>